"""
精选页面
"""
from page.BASE_PAGE import BasePage
class JINGXUAN(BasePage):
    #点击搜索框
    def dj_shousuokuang(self):
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("搜索食谱/作品/用户")').click()
    # 点击日日煮食谱专栏
    def dj_ririzhuzhuanlan(self):
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("日日煮食谱专栏")').click()
    # 点击晚餐卡
    def dj_wanchanka(self):
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("晚餐卡")').click()
    # 点击最新
    def dj_zuixing(self):
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("最新")').click()
    def dj_diyigecai(self):
    # 点击出现的第一个菜品
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("纪念申请消除北京健康宝弹窗失败第")').click()
    # 点击关注
    def dj_guanzhu(self):
        self.driver.tap([(800, 1420)], 500)
    # 点击返回
    def fanhui(self):
        self.driver.press_keycode(4)
    # 点击赞
    def dj_zhan(self):
        self.driver.tap([(430, 1550)], 500)
    # 点击收藏
    def dj_shouchang(self):
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("收藏")').click()
    # 点击早餐
    def dj_zaochan(self):
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("早餐")').click()
    # 点击午餐
    def dj_wuchan(self):
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("午餐")').click()
    # 点击晚餐
    def dj_wanchan(self):
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("晚餐")').click()
    # 点击食谱分类
    def dj_shipufenle(self):
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("食谱分类")').click()


